<?php

$opts['tb'] = $PACTS_cfg->educationinstitutiontablename;

// Name of field which is the unique key
$opts['key'] = 'EducationalInstitutionName';

// Type of key field (int/real/string/date etc.)
$opts['key_type'] = 'string';

// Sorting field(s)
$opts['sort_field'] = array('EducationalInstitutionName');

$opts['fdd']['EducationalInstitutionName'] = array(
  'name'     => 'EducationalInstitutionName',
  'select'   => 'T',
  'maxlen'   => 100,
  'default'  => '',
  'required' => true,
  'sort'     => true
);
$opts['fdd']['EducationalInstitutionLocation'] = array(
  'name'     => 'EducationalInstitutionLocation',
  'select'   => 'T',
  'maxlen'   => 100,
  'sort'     => true
);
$opts['fdd']['EducationalInstitutionType'] = array(
  'name'     => 'EducationalInstitutionType',
  'select'   => 'T',
  'maxlen'   => 18,
  'sort'     => true,
  'values'   => array('Preschool','Primary','Secondary','Primary/Secondary','Tertiary')
);

// Now important call to phpMyEdit
new phpMyEdit($opts);

?>

